package com.ccrfid.rmc6.repository.business.patrol;

import com.ccrfid.rmc6.entity.business.patrol.PatrolLocationEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PatrolLocationRepository extends Repository<PatrolLocationEntity, Long> {
    //
    PatrolLocationEntity getByLocationId(Long locationId);
    //
    List<PatrolLocationEntity> getAllBy();
    //
    PatrolLocationEntity save(PatrolLocationEntity entity);
    //
    void deleteByLocationId(Long locationId);
    //
    void delete(PatrolLocationEntity entity);
}
